package cn.code.mycloud.module.envir.controller.admin.aqi.vo;

import cn.code.mycloud.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.code.mycloud.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - AQI分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AqiPageReqVO extends PageParam {

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "填报人")
    private String userName;

    @Schema(description = "网格用户ID")
    private Long gridUserId;

    @Schema(description = "网格员")
    private String gridUserName;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "细颗粒物（PM2.5）")
    private String pm25;

    @Schema(description = "二氧化硫（SO2）")
    private String so2;

    @Schema(description = "一氧化碳（CO）")
    private String co;

    @Schema(description = "反馈信息")
    private String description;

    @Schema(description = "细颗粒物（PM2.5）-确认值")
    private String pm25Confirm;

    @Schema(description = "二氧化硫（SO2）-确认值")
    private String so2Confirm;

    @Schema(description = "一氧化碳（CO）-确认值")
    private String coConfirm;

    @Schema(description = "反馈信息）-确认值")
    private String descriptionConfirm;

    @Schema(description = "状态(0-待指派 1-已指派 2-已完成)")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "网格ID", example = "19119")
    private Long gridId;

    @Schema(description = "网格名称", example = "张三")
    private String gridName;

    @Schema(description = "空气质量指数级别")
    private String aqiLevel;

    @Schema(description = "空气质量指数级别-确认值")
    private String aqiLevelConfirm;

    @Schema(description = "AQI")
    private Integer aqi;

    @Schema(description = "AQI-确认值")
    private Integer aqiConfirm;

}